package com.rabbitmq.demo.conf;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 工作模式
 *
 * @Author yi.cheng
 * @Date 2023-7-12 14:12
 **/
@Configuration
public class WorkQueueConfig {
    // 队列名称
    public final static String WORK_QUEUE_NAME = "workQueue";

    @Bean
    public Queue workQueue() {
        return new Queue(WORK_QUEUE_NAME, true);
    }
}
